const nodata = require('../tw-lib-base/no-data/props')
const commonProps = require('../tw-lib-base/chart/common-props')
const axisProps = require('../tw-lib-base/chart/axis-props')
const datazoomProps = require('../tw-lib-base/chart/datazoom-props')
const tooltipProps = require('../tw-lib-base/chart/tooltip-props')

module.exports = {
  ...commonProps,

  ...axisProps,
  ...datazoomProps,
  ...tooltipProps,
  isSmooth: {
    type: Boolean,
    default: false,
    name: '线条平滑显示',
    filedType: 'switch'
  },

  // 堆叠数据
  lineName: {
    type: String,
    default: '王飞虎',
    name: '线图数据',
    nameTip: '英文逗号分隔，在此列表为线图',
    filedType: 'string'
  },
  isBarStack: {
    type: Boolean,
    default: false,
    name: '柱状图堆叠',
    filedType: 'switch'
  },

  barMaxWidth: {
    type: String,
    default: '50%',
    name: '柱子最大宽度',
    filedType: 'string'
  },

  useSeries: {
    type: Boolean,
    default: false,
    name: '启用定制series',
    filedType: 'switch'
  },
  funcSeries: {
    type: Function,
    default: '',
    name: '定制series函数',
    filedType: 'function'
  },
  extendOption: {
    type: Boolean,
    default: false,
    name: '扩展定制option',
    filedType: 'switch'
  },
  funcExtOption: {
    type: Function,
    default: '',
    name: '扩展定制option函数',
    filedType: 'function'
  },

  ...nodata
}
